<?php
// +----------------------------------------------------------------------
// | 网站设置
// +----------------------------------------------------------------------

return [
    // 网站基本信息
    'site_domain'       => 'wallecho.com',
    'att_domain'        => 'f.wallecho.com',
    'site_name'         => '壁響',
    'site_description'  => '當心情遇見屏壁 — 每個像素都在響應你的風格',
    'site_keywords'     => '桌布,壁紙,高清桌布,電腦桌布,手機桌布,風景桌布,動漫桌布',
    'site_copyright'    => '© 2025 壁響網 版權所有',
    'icp'               => '',
    
    // 上传设置
    'upload_path'       => '/uploads/images/',
    'thumbnail_path'    => '/uploads/thumbnails/',
    'allow_exts'        => ['jpg', 'jpeg', 'png', 'gif'],
    'max_size'          => 5242880, // 5M
    
    // 默认分页大小
    'page_size'         => 20,
    
    // 首页设置
    'featured_desktop_limit'    => 8,  // 推荐桌布显示数量
    'featured_mobile_limit'    => 10,  // 推荐桌布显示数量
    'latest_desktop_limit'      => 8, // 最新桌布显示数量
    'latest_mobile_limit'      => 10, // 最新桌布显示数量
    'popular_desktop_limit'     => 4,  // 热门桌布显示数量
    'popular_mobile_limit'     => 5,  // 热门桌布显示数量
    
    // 详情页设置
    'related_limit'     => 4,  // 相关推荐显示数量
    'prompt'       => [
        'mobile'  =>'{"prompt": "%s", "height": "768", "width": "432" }',
        'desktop' =>'{"prompt": "%s", "height": "432", "width": "768" }',
    ],
    'daily_limits' => [
        'guest'    => 3,   // Daily limit for guests
        'user'     => 5,  // Daily limit for users
    ],
    'auth'  => [
        'cookie_key'            => '_ltoken',
        // Cookie加密盐值，用于加密用户ID
        'cookie_salt'            => 'L1n3ArT@pp$3CurEh4sh9x7CooK13k3Y!',
        // 是否启用谷歌登录
        'enable_google_login' => true,
    ],
    // 图片生成配置
    'generate_loading_time' => [
        'mobile'  => 23,   // 手机桌布预计生成时间(秒)
        'desktop' => 23,   // 电脑桌布预计生成时间(秒)
    ],
    // Google登录配置
    'google' => [
        'client_id' => '1005462501905-5gm16ogknrn8mdcpkkhl6t9drhpt5651.apps.googleusercontent.com', // 需要替换为真实的Google客户端ID
        'client_secret' => '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', // 需要替换为真实的Google客户端密钥
    ],
    'r2' => [
        'driver' => 'r2',
        'key' => "8d425d6c182ec736579e375f295fb645",
        'secret' => "db41dfe59a5c45f7bbee98b7f0365481f1b560c5bf2e60b6538b236cf0fff18d",
        'region' => 'auto',
        'bucket' => "wallecho",
        'url' => "https://r2.wallecho.com",
        'visibility' => 'public',
        'endpoint' =>"https://6fd2fec81a529fb15741b00cb07526c9.r2.cloudflarestorage.com",
        'use_path_style_endpoint' =>false,
        'throw' => false,
    ],

    
];